package com.eamois.action.graph;

import java.util.Collection;

import com.eamois.action.BaseAction;
import com.eamois.domain.graph.ManualTemplate;
import com.eamois.domain.graph.ManualWorkCard;
import com.eamois.service.graph.ManualTemplateService;
import com.eamois.util.ServiceFactory;

public class ManualTemplateAction extends BaseAction {
	private ManualTemplateService manualTemplateService;
	
	public ManualTemplateService getManualTemplateService() {
		return manualTemplateService;
	}

	public void setManualTemplateService(ManualTemplateService manualTemplateService) {
		this.manualTemplateService = manualTemplateService;
	}

	public ManualTemplateAction() {
		setManualTemplateService((ManualTemplateService) ServiceFactory.getInstance()
				.getBean("manualTemplateService"));
	}

	public Collection<ManualTemplate> findAll(){
		return this.getManualTemplateService().findAll();
	}
	public Collection<ManualTemplate> findTemplateByManualWorkCard(ManualWorkCard manualWorkCard){
		return this.getManualTemplateService().findTemplateByManualWorkCard(manualWorkCard);
	}
	public void save(ManualTemplate template){
		 this.getManualTemplateService().save(template);
	}
	public void remove(ManualTemplate template){
		this.getManualTemplateService().remove(template);
	}
	

}
